<script>
	import APPUpdate from '@/uni_modules/zhouWei-APPUpdate/js_sdk/appUpdate';

	export default {
		onLaunch: function() {
			uni.getSystemInfo({ //设置屏幕高度
				success: res => {
					//减去tabbar的高度，默认为50px
					this.globalData.screenHeight = res.screenHeight;
					this.globalData.screenWidth = res.screenWidth;
				}
			})

			// 版本更新
			let platform = uni.getSystemInfoSync().platform
			if (platform == 'ios') {

			} else if (platform == 'android') {
				APPUpdate();
			}
		},
		onShow: function() {

		},
		onHide: function() {

		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "@/uni_modules/uview-ui/index.scss";
	@import "common/demo.scss";

	.text-content {
		font-weight: normal;
		font-size: 30rpx;
		color: #222222;
		line-height: 42rpx;
		letter-spacing: 3rpx;
		text-align: left;
		font-style: normal;
		text-transform: none;
		text-indent: 2ch;
		overflow-wrap: break-word;
		word-break: break-all;
		white-space: pre-wrap;
	}


	.title-content {
		font-weight: 600;
		font-size: 32rpx;
		color: #222222;
		line-height: 40rpx;
		letter-spacing: 5rpx;
		overflow-wrap: break-word;
		word-break: break-all;
		white-space: pre-wrap;
	}

	.form-root {
		width: 100%;
		padding: 30rpx;
		box-sizing: border-box;

		.form-container {
			border-radius: 20rpx;
			background: #fff;
			margin-bottom: 20rpx;

			.u-form {
				.u-form-item {
					.u-form-item__body {
						.u-form-item__body__left {
							align-items: flex-start;
						}

						.u-form-item__body__left__content {
							padding-left: 30rpx;
						}

						.u-form-item__body__right {
							padding-right: 20rpx;
						}
					}
				}
			}


		}

		.button-container {
			width: 100%;

			.button {
				margin-bottom: 20rpx;
				border-radius: 20rpx;

				&.submit-style {
					background: #AD2325;

					.u-button__text {
						font-size: 30rpx;
						color: #fff;
					}
				}

				&.cancel-style {
					border: 2rpx solid #AD2325;
					background: transparent;

					.u-button__text {
						font-size: 30rpx;
						color: #AD2325;
					}
				}
			}
		}
	}
</style>